set -x

cargo build --release --target wasm32-unknown-unknown

cp target/wasm32-unknown-unknown/release/WasmPack.wasm html/WasmPack.wasm

wasm-gc html/WasmPack.wasm html/program.wasm

python -m SimpleHTTPServer

wasm-pack build

cd pkg && npm link
cd ../www && npm WasmPack
npm run start